#include "Base.h"
#include "ChessServer.h"
#include "Ini.h"
#include "ChessGame.h"
#include "ChessServerPlayer.h"

char g_szServiceName[] = "ChessServer";

int WINAPI WinMain(HINSTANCE hInst,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
	CChessServer *pServer = new CChessServer;
	if(pServer != NULL)
	{
		pServer->WinMain();
	}
	return 0;
}

CChessServer::CChessServer(void)
{
}


CChessServer::~CChessServer(void)
{
}

BOOL CChessServer::OnInitialUpdate()
{
	if(!CGameServer::OnInitialUpdate())
		return FALSE;

	return TRUE;
}

CGame* CChessServer::CreateGame()
{
	return new("CChessGame", __FILE__, __LINE__) CChessGame;
}

CPlayer *CChessServer::CreatePlayer(int nOrigin)
{
	return new("CChessServerPlayer", __FILE__, __LINE__) CChessServerPlayer;
}




